package com.shop.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
public class UserRoleDTO implements Serializable {

    private String userName;

    private String roleName;

    private String roleRemark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userCreateDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userUpdateDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date roleCreateDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date roleUpdateDate;

}
